package com.jhd.fuzhou.service;


import com.jhd.fuzhou.vo.JsonForResult;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface ReceiveService {
    //获取收文列表，reportStatus，reportTitle，fileType，startDate，endDate，pageIndex: 1，pageSize: 10，userName: admin,status: 1
    @GET("supervise/receiveReport/getReceiveReportListByApp")
    Call<JsonForResult> getReceiveReportListByApp(@Header("Authorization") String token, @QueryMap Map<String, Object> params);
    //获取单个收文,id，根据pc情况完全用不到，从列表页传过去就行，文件调用getArchivesFilesById
    @GET("supervise/receiveReport/getReceiveReportInfoById")
    Call<JsonForResult> getReceiveReportInfoById(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取文档管理的列表,archivesId
    @GET("supervise/archivesFile/getArchivesFilesById")
    Call<JsonForResult> getArchivesFilesById(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //添加阅文意见
    @GET("supervise/receiveReport/addReadAdvise")
    Call<JsonForResult> addReadAdvise(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //添加阅文意见
    @GET("supervise/receiveReport/getReadPersonRecord")
    Call<JsonForResult> getReadPersonRecord(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取文档管理的列表,archivesId
    @POST("supervise/receiveReport/saveReceiveReport")
    Call<JsonForResult> saveReceiveReport(@Header("Authorization") String token, @Body RequestBody requestBody);
    //添加审核人
    @POST("supervise/receiveReport/addReadPerson")
    Call<JsonForResult> addReadPerson(@Header("Authorization") String token, @Body RequestBody requestBody);
}
